﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S.EarTag.Domain.Model
{
    /// <summary>
    /// 育种称重
    /// </summary>
    [SugarTable("BreedingWeigh")]
    public class BreedingWeigh
    {
        /// <summary>
        /// 育种称重主键id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int BreedingID { get; set; }
        /// <summary>
        /// 主表id（档案id）
        /// </summary>
        [SugarColumn(ColumnName = "SheepFileId")]
        public int SheepFileId { get; set; }
        /// <summary>
        /// 称重日期
        /// </summary>
        [SugarColumn(ColumnName = "WeighDate")]
        public DateTime WeighDate { get; set; }
        /// <summary>
        /// 电子耳号Id
        /// </summary>
        [SugarColumn(ColumnName = "MarkId")]
        public int MarkId { get; set; }
        /// <summary>
        /// 电子耳号标
        /// </summary>
        [SugarColumn(ColumnName = "EarTag")]
        public string? EarTag { get; set; }
        /// <summary>
        /// 称重类型(断奶重，月龄重，出生重)
        /// </summary>
        [SugarColumn(ColumnName = "WeighCategory")]
        public WeighItem WeighCategory { get; set; }
        /// <summary>
        /// 重量
        /// </summary>
        [SugarColumn(ColumnName = "Weight", ColumnDataType = "decimal(18,2)")]
        public decimal Weight { get; set; }
        /// <summary>
        /// 称重月龄
        /// </summary>
        [SugarColumn(ColumnName = "WeightMonthsAge")]
        public int WeightMonthsAge { get; set; }
        /// <summary>
        /// 栋舍
        /// </summary>
        [SugarColumn(ColumnName = "BuildingName")]
        public string? BuildingName { get; set; }
        /// <summary>
        /// 栏位
        /// </summary>
        [SugarColumn(ColumnName = "ColumnName")]
        public string? ColumnName { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [SugarColumn(ColumnName = "CreateBy")]
        public string? CreateBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreateDate")]
        public DateTime CreateDate { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        [SugarColumn(ColumnName = "UpdateBy")]
        public string? UpdateBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        [SugarColumn(ColumnName = "UpdateDate")]
        public DateTime? UpdateDate { get; set; }
        /// <summary>
        /// 逻辑删除
        /// </summary>
        [SugarColumn(ColumnName = "LogicalDeletion")]
        public bool LogicalDeletion { get; set; }


    }
}
